package com.boarsoft.boar.entity;

import java.io.Serializable;

public class FileInfo implements Serializable {
	private static final long serialVersionUID = 8439425726667885504L;

	public static final short TYPE_OTHER = 0;
	public static final short TYPE_XML = 1;
	public static final short TYPE_PROP = 2;
	public static final short TYPE_TXT = 3;
	public static final short TYPE_CONF = 4;
	public static final short TYPE_SQL = 5;
	public static final short TYPE_SHELL = 6;
	public static final short TYPE_DIR = 7;
	public static final short TYPE_YML = 8;
	public static final short TYPE_JSON = 9;

	public static final short STATUS_ALL = 0;
	public static final short STATUS_USED = 1;
	public static final short STATUS_NOUSE = 2;

	/** 文件ID */
	protected String id;
	/** 工程ID */
	protected String projId;
	/** 如果此文件专属于某个应用，则其appId不为空 */
	protected String appId;
	/** */
	protected short type;
	/** 文件编号 */
	protected String code;
	/** 文件编码 */
	protected String encoding;
	/** 文件名称 */
	protected String name;
	/** 文件状态：0：停用，1：启用 */
	protected short status;
	/** 文件相对应用的路径 */
	protected String deployPath;
	/** FileInfo 创建时间 */
	protected String createTime;
	/** FileInfo最后更新时间 */
	protected String lastTime;
	/** 字符集 */
	protected String charset;
	/** 文件描述 */
	protected String memo;

	/** 不映射，用于返回文件内容到应用 */
	protected String content;

	@Override
	public String toString() {
		return id;
	}

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public short getStatus() {
		return status;
	}

	public void setStatus(short status) {
		this.status = status;
	}

	public String getDeployPath() {
		return deployPath;
	}

	public void setDeployPath(String deployPath) {
		this.deployPath = deployPath;
	}

	public String getMemo() {
		return memo;
	}

	public void setMemo(String memo) {
		this.memo = memo;
	}

	public String getCreateTime() {
		return createTime;
	}

	public void setCreateTime(String createTime) {
		this.createTime = createTime;
	}

	public String getProjId() {
		return projId;
	}

	public void setProjId(String projId) {
		this.projId = projId;
	}

	public String getEncoding() {
		return encoding;
	}

	public void setEncoding(String encoding) {
		this.encoding = encoding;
	}

	public String getAppId() {
		return appId;
	}

	public void setAppId(String appId) {
		this.appId = appId;
	}

	public short getType() {
		return type;
	}

	public void setType(short type) {
		this.type = type;
	}

	public String getLastTime() {
		return lastTime;
	}

	public void setLastTime(String lastTime) {
		this.lastTime = lastTime;
	}

	public String getCharset() {
		return charset;
	}

	public void setCharset(String charset) {
		this.charset = charset;
	}

	public String getContent() {
		return content;
	}

	public void setContent(String content) {
		this.content = content;
	}

}